/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package dnbW.uiW.dbW;

import dnbW.dbW.PathExpression2;

/**
 * An small object kept within a tree leaf node and storing the path expression
 * from the root node to that leaf node.
 * @author zhouyong
 */
public class SchemaTreeLeafNodeObject {
    /**
     * The path from the root node to that leaf node
     */
    private PathExpression2 pathExpression;

    public SchemaTreeLeafNodeObject(PathExpression2 pathExpression) {
        this.pathExpression = pathExpression;
    }

    @Override
    public String toString() {
        return pathExpression.getLastStep().getQName();
    }
}
